package com.epam.airlines;

import java.io.Serializable;

public class Airplane extends Aircraft implements Serializable {

	private static final long serialVersionUID = 1L;

	public Airplane(String name, int numPass, float tonn, int dist, int cons,
			String id) {
		super(name, numPass, tonn, dist, cons, id);
	}

	public String toString() {
		String res = "The airplane " + this.getName() + ", id: " + this.getId()
				+ ", " + this.getNumPass() + " people, " + this.getDistance()
				+ " km, " + this.getConsumption() + " kg/h, "
				+ this.getTonnage() + " t, " + this.getFlyingHoursTotal()
				+ " flying hours.";
		return res;
	}

}
